From: Glenn Morris Date: Thu, 1 Dec 2011 22:30:12 +0000 (-0500) Subject: Tweak previous em-hist.el change. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~844^2~152^2~40 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=e2154d9437fd57a6ba2eb08fe1d1e349ce1283a5;p=emacs.git Tweak previous em-hist.el change. --- diff --git a/lisp/eshell/em-hist.el b/lisp/eshell/em-hist.el index 975f1b17143..5ae419f7ba9 100644 --- a/lisp/eshell/em-hist.el +++ b/lisp/eshell/em-hist.el @@ -263,8 +263,9 @@ element, regardless of any text on the command line. In that case, (or eshell-history-size (let ((hsize (getenv "HISTSIZE"))) (setq eshell-history-size - (if (and (> (length hsize) 0) - (integerp (setq hsize (string-to-number hsize)))) + (if (and (stringp hsize) + (integerp (setq hsize (string-to-number hsize))) + (> hsize 0)) hsize 128))))